package com.example.win.android_banduyujia.peopleactivity.activity.activity.firmactivity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.example.win.android_banduyujia.R;
import com.example.win.android_banduyujia.entity.Constants;
import com.example.win.android_banduyujia.peopleactivity.ui.activity.BaseTitleBarActivity;

/**
 * Created by Win on 2015/8/31.
 */
public class RemindActivity extends BaseTitleBarActivity implements View.OnClickListener {

    public static final String USER_REMIND = "RemindActivity.USER_SEX";

    /*private LinearLayout mLayoutTwotimes, mLayoutToday, mLayoutTwoToday;
    private ImageView mIcontwotime, mIcononetoday, mIcontwotoday;*/
    private Button    mBtnConfirm;

    private int mUserRemind;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout_remind_settings);

        InitTitles();
        InitDatas();
        InitViews();
    }

    private void InitTitles() {
        showLeftBackButton();
        setTitle(R.string.layout_remind_activity_setting);
    }

    private void InitDatas() {
        mUserRemind=getIntent().getIntExtra(USER_REMIND, Constants.REMIND_TWO_TIME);
    }

    private void InitViews() {
        /*mLayoutTwotimes = (LinearLayout) findViewById(R.id.layout_view_two_time);
        mLayoutToday = (LinearLayout) findViewById(R.id.layout_view_one_today);
        mLayoutTwoToday = (LinearLayout) findViewById(R.id.layout_view_two_today);
        mIcontwotime = (ImageView) findViewById(R.id.title_two_time_icon);
        mIcononetoday = (ImageView) findViewById(R.id.title_one_today_icon);
        mIcontwotoday = (ImageView) findViewById(R.id.title_two_today_icon);*/
        mBtnConfirm = (Button) findViewById(R.id.layout_button_confrim);

       /* mLayoutTwotimes.setOnClickListener(this);
        mLayoutToday.setOnClickListener(this);
        mLayoutTwoToday.setOnClickListener(this);*/
        mBtnConfirm.setOnClickListener(this);

        refreshViews();
    }

    private void refreshViews() {
       /* mIcontwotime.setVisibility(View.GONE);
        mIcononetoday.setVisibility(View.GONE);
        mIcontwotoday.setVisibility(View.GONE);
        switch (mUserRemind){
            case Constants.REMIND_TWO_TIME:
                mIcontwotime.setVisibility(View.VISIBLE);
                break;
            case Constants.REMIND_ONE_TODAY:
                mIcononetoday.setVisibility(View.VISIBLE);
                break;
            case Constants.REMIND_TWO_TODAY:
                mIcontwotoday.setVisibility(View.VISIBLE);
                break;
        }*/
    }

    @Override
    public void onClick(View v) {
       switch (v.getId()){
          /* case R.id.title_two_time_icon:
               mUserRemind = Constants.REMIND_TWO_TIME;
               break;
           case R.id.title_one_today_icon:
               mUserRemind = Constants.REMIND_ONE_TODAY;
               break;
           case R.id.title_two_today_icon:
               mUserRemind = Constants.REMIND_TWO_TODAY;
               break;*/
       }
        refreshViews();
    }
}
